#!/usr/bin/env python
# -*- coding: utf-8 -*-

from app import db
from utils.mongo import *

# 类名定义 collection
class Url(Model):

    class Meta:
        database = db
        collection = 'url'


    # 字段
    name = StringField()
    isDeleted = BooleanField(field_name='isDeleted', default=False)
    _id = ObjectIdField()
    cishu = IntField()



    def __str__(self):
        return "name:{}"\
            .format(self.name)


if __name__ == '__main__':
    pass